package main

import (
	"fmt"
	"sync"
)
var once sync.Once

func main()  {
		samleText := []byte(`
			# ccc 
			rate: 100,
			array:[100,200]
		`)


	imgLen := 0

	for i := 0; i < 3; i++ {
		go func (param *int)  { // 异步操作
			*param = *param + 1
			
			fmt.Println(">>>>>>>-- ",imgLen)
		}(&imgLen)
	}

	for i := 0; i < 1;  {
		if (imgLen==3){
			i++
		}
	}
	
	fmt.Println(">>>>>>> ",imgLen)
	fmt.Println(string(samleText))
}